import {createStore} from 'vuex';
export const store = createStore({
  state: {
    changeCart: 0,
    loading: false
  },
  mutations: {
    changeCart(state,data){
      state.changeCart += 1;
    },
    showLoading(state) {
      state.loading = true;
    },
    hideLoading(state) {
      state.loading = false;
    }
  }
})